.orders-page {
  background: #f0f8f0;
  min-height: 100vh;

  .orders-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid #e8f5e8;

    h2 {
      margin: 0;
      margin-left: 12px;
      font-size: 16px;
      font-weight: 500;
      color: #2d5a2d;
    }
  }

  .order-tabs {
    background: white;
    margin: 0;
    border-bottom: 1px solid #e8f5e8;
  }

  .orders-content {
    padding: 8px;

    .loading {
      text-align: center;
      padding: 40px 20px;
      color: #6b8e6b;
      font-size: 14px;
      background: white;
      border-radius: 8px;
      margin: 8px 0;
    }

    .orders-list {
      .order-card {
        background: white;
        border-radius: 8px;
        margin-bottom: 8px;
        box-shadow: 0 2px 8px rgba(45, 90, 45, 0.1);
        border: 1px solid #e8f5e8;
        transition: all 0.3s ease;
        overflow: hidden;
        position: relative;

        &::before {
          content: '';
          position: absolute;
          top: 0;
          left: 0;
          right: 0;
          height: 3px;
          background: linear-gradient(90deg, #4caf50 0%, #8bc34a 100%);
        }

        &:hover {
          transform: translateY(-1px);
          box-shadow: 0 4px 16px rgba(45, 90, 45, 0.15);
        }

        .order-header {
          display: flex;
          justify-content: space-between;
          align-items: flex-start;
          padding: 12px 16px;
          background: #f8fdf8;
          border-bottom: 1px solid #e8f5e8;

          .order-info-left {
            display: flex;
            flex-direction: column;
            gap: 4px;

            .order-no {
              font-size: 12px;
              color: #4a6741;
              font-weight: 500;
              font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
              background: #e8f5e8;
              padding: 2px 6px;
              border-radius: 3px;
              display: inline-block;
            }

            .order-time {
              font-size: 11px;
              color: #6b8e6b;
              font-weight: 400;
            }
          }

          .order-status-section {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 4px;
          }

          .order-status-badge {
            font-size: 11px;
            font-weight: 600;
            padding: 4px 8px;
            border-radius: 12px;
            text-align: center;
            min-width: 50px;
            background: #d4edda;
            color: #28a745;
            border: 1px solid #c3e6cb;
          }

          .countdown-display {
            font-size: 12px;
            color: #ff6b35;
            padding: 2px 6px;
            border-radius: 4px;
            font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
            letter-spacing: 0.5px;
            white-space: nowrap;

            .countdown-text {
              color: #ff6b35;
              font-weight: 500;
            }

            &.expired {
              background: #f5f5f5;
              border-color: #d9d9d9;
              
              .expired-text {
                color: #999;
                font-weight: 400;
              }
            }
          }
        }
        .order-content {
          display: flex;
          flex-direction: column;
          padding: 12px 16px;
          gap: 12px;

          .order-details {
            display: flex;
            flex-direction: column;
            gap: 6px;

            .amount-section {
              display: flex;
              align-items: center;
              gap: 8px;

              .amount-label {
                font-size: 12px;
                color: #6b8e6b;
                font-weight: 400;
              }

              .amount-value {
                font-size: 16px;
                font-weight: 600;
                color: #2d5a2d;
              }
            }

            .order-remark {
              display: flex;
              align-items: center;
              gap: 4px;

              .remark-label {
                font-size: 11px;
                color: #6b8e6b;
                font-weight: 400;
              }

              .remark-text {
                font-size: 11px;
                color: #4a6741;
                font-weight: 500;
                background: #f0f8f0;
                padding: 2px 6px;
                border-radius: 3px;
                border: 1px solid #e8f5e8;
              }
            }
          }

          .order-countdown {
            margin: 8px 0;
            align-self: flex-start;
          }

          .button-group {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            gap: 8px;
            margin-top: 8px;
            width: 100%;
          }

          .pay-button {
            background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
            border: none;
            border-radius: 6px;
            padding: 8px 16px;
            font-size: 12px;
            font-weight: 500;
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
            min-width: 80px;
            text-align: center;

            &:hover {
              transform: translateY(-1px);
              box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
            }

            &:active {
              transform: translateY(0);
            }

            &:disabled {
              opacity: 0.6;
              cursor: not-allowed;
              transform: none;
            }
          }

          .view-detail-btn {
            background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
            border: none;
            border-radius: 6px;
            padding: 8px 12px;
            font-size: 12px;
            font-weight: 500;
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
            min-width: 70px;
            text-align: center;

            &:hover {
              transform: translateY(-1px);
              box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
            }

            &:active {
              transform: translateY(0);
            }
          }
        }
      }
    }
  }
}

// 空状态样式
.nut-empty {
  background: white;
  border-radius: 8px;
  padding: 40px 20px;
  margin: 8px 0;
  box-shadow: 0 2px 8px rgba(45, 90, 45, 0.1);
  
  .nut-empty__description {
    color: #6b8e6b;
    font-size: 13px;
    margin-top: 12px;
  }
}

// 响应式设计
@media (max-width: 768px) {
  .orders-page {
    .orders-content {
      padding: 6px;
      
      .orders-list .order-card {
        margin-bottom: 6px;
        
        .order-header {
          padding: 10px 12px;
        }
        
        .order-content {
          padding: 10px 12px;
          flex-direction: column;
          align-items: flex-start;
          gap: 10px;
          
          .order-details {
            width: 100%;
          }
          
          .view-detail-btn {
            align-self: flex-end;
            width: auto;
          }
        }
      }
    }
  }
}